package com.hkbigdata.sybx.service.ipml;

import com.hkbigdata.sybx.bean.Policy;
import com.hkbigdata.sybx.mapper.PolicyMapper;
import com.hkbigdata.sybx.service.PolicyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuanbo
 * @creat 2025-06-03-15:23
 * @see 2194550857@qq.com
 */
@Service
public class PolicyServiceImpl implements PolicyService {
    @Autowired
    private PolicyMapper policyMapper;
    @Override
    public List<Policy> listPolicy() {
        List<Policy> policies = policyMapper.selectAll();
        if (policies != null) {
            return policies;
        }
        return null;
    }
}
